package com.mz361.modules.system.repository;

import com.mz361.modules.system.domain.PayOrder;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author liaomch
 * @ date 2024/05/07
 */
public interface OrderRepository extends BaseRepository<PayOrder, Long>, JpaSpecificationExecutor<PayOrder> {

    @Query(value = "select count(o.id) FROM PayOrder o")
    Long countAll();
}